Rebasing

Once you have compiled and installed all required modules, you MUST use the "rebase" utility before you can use the framework. If you try to load a shared library (compiled perl module) into your application before rebasing it, it may puke and die with an error like the following:

C:\cygwin\bin\cygperl.exe: *** unable to remap [...]

You can obtain the latest version of it from: http://www.tishler.net/jason/software/rebase/.

The "rebaseall" application will automatically rebase the system libraries, you should run this at least once, especially if you plan on using InlineEgg payloads. To rebase the Net::SSLeay module, perform the following steps:

# 1: Locate the DLL file inside the perl tree
$ find /lib/perl5 -name 'SSLeay.dll'

# 2: Change the permission of the DLL to 755
$ chmod 755 /lib/perl5/path/to/SSLeay.dll

# 3: Run the rebase utility on the DLL
$ rebase -d -b 0x4d455441 /lib/perl5/path/to/SSLeay.dll